package cn.hacynn.nd.pojo.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;


@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SafeFile implements Serializable {
    @TableId
    private String id;

    /**
     * 保险箱所属用户
     */
    private Long userId;

    /**
     * 用户文件
     */
    private String fileId;

    @TableField( value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    private Boolean deleted;

    private static final long serialVersionUID = 1L;


}